using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;

namespace Gourd.Test.Controllers
{
    [ApiController]
    [Route("api/[controller]")]
    public class ValuesController : ControllerBase
    {

        private readonly IOptions<AppSettings> _options;

        public ValuesController(IOptions<AppSettings> options)
        {
            this._options = options;
        }

        [HttpGet("/")]
        public ActionResult Get()
        {
            JsonConvert.SerializeObject(_options.Value);
            return Ok($"{_options.Value.test},{_options.Value.test2},vv可真是一个小可爱");
        }
    }
}
